package net.lesscoding.feign;

import net.lesscoding.Result;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;

/**
 * @author eleven
 * @date 2025/4/16 14:00
 * @apiNote
 */
@FeignClient(name="storage-service")
public interface StorageClient {

    @PostMapping("/storage/deduct/{goodsCode}/{count}")
    Result<Integer> deduct(@PathVariable("goodsCode") String goodsCode, @PathVariable("count") Integer count);
}
